﻿using System;
using System.Collections.Generic;
using System.Text;
using Xms.Core.Context;
using Xms.CRM.Domain;

namespace Xms.CRM
{
    public interface IStudentCourseRefService
    {
        Guid Create(StudentCourseRef entity);

        bool CreateMany(List<StudentCourseRef> entitys);

        bool DeleteById(Guid id);

        bool DeleteById(List<Guid> ids);

        StudentCourseRef FindById(Guid id);

        List<StudentCourseRef> Query(Func<QueryDescriptor<StudentCourseRef>, QueryDescriptor<StudentCourseRef>> container);

        PagedList<StudentCourseRef> QueryPaged(Func<QueryDescriptor<StudentCourseRef>, QueryDescriptor<StudentCourseRef>> container);

        bool Update(StudentCourseRef entity);

        bool Update(Func<UpdateContext<StudentCourseRef>, UpdateContext<StudentCourseRef>> context);
    }
}
